package com.springboot.springautowired.acquireBean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author mac
 * @date 2021/9/17 10:19 上午
 */
@Configuration
public class ConfigurationBean {

    @Bean("bean1")
    public MyBean getBean1(){
        return new MyBean();
    }
    @Bean("bean2")
    public MyBean getBean2(){
        return new MyBean();
    }
}
